package com.mutouren.web;

//import org.springframework.context.ApplicationContext;
//
//import com.mutouren.common.entity.ValidState;
//import com.mutouren.modules.org.model.App;
//import com.mutouren.modules.org.service.AppService;

//public class AppManager {

//	public final static String appAlias = "mtr-org";
//	public static App app = null;
//	
//	public static void init(ApplicationContext context) {
//		AppService appService = context.getBean(AppService.class);
//		app = appService.getByAppAlias(appAlias);
//		if (app == null) {
//			throw new RuntimeException(String.format("AppManager.init fail: not find appAlias %s", appAlias));
//		}
//		
//		if (app.getValidState() != ValidState.Normal) {
//			throw new RuntimeException(String.format("AppManager.init fail: appAlias %s validState isn't normal", appAlias));
//		}
//	}
	
//}
